package com.cloudcentral.entity.vo;

import com.cloudcentral.entity.RadioDevice;
import com.cloudcentral.entity.RadioEnvironment;
import com.cloudcentral.entity.RadioLocation;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Create by Administrator
 * 2023/11/23 9:41
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Schema(description = "台站详情数据")
public class RadioDetailVO {
  @Schema(description = "ID")
  private String id;
  @Schema(description = "名称")
  private String name;
  @Schema(description = "FPGA版本")
  private String fpgaVersion;
  @Schema(description = "FPServer版本")
  private String fpServerVersion;
  @Schema(description = "位置信息")
  private RadioLocation location;
  @Schema(description = "设备信息")
  private RadioDevice device;
  @Schema(description = "环境信息")
  private RadioEnvironment environment;
  @Schema(description = "状态:(OFFLINE,离线;IDLE,空闲;SENDING,发送;RECEIVING,接收;)")
  private String status;
  @Schema(description = "上线时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date onlineTime;
  @Schema(description = "注册时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date registerTime;
}
